import request from '@/utils/request'

// 查询品种列表
export function listVarity(query) {
  return request({
    url: '/system/varity/list',
    method: 'get',
    params: query
  })
}

// 查询品种详细
export function getVarity(varityId) {
  return request({
    url: '/system/varity/' + varityId,
    method: 'get'
  })
}

// 新增品种
export function addVarity(data) {
  return request({
    url: '/system/varity',
    method: 'post',
    data: data
  })
}

// 修改品种
export function updateVarity(data) {
  return request({
    url: '/system/varity',
    method: 'put',
    data: data
  })
}

// 删除品种
export function delVarity(varityId) {
  return request({
    url: '/system/varity/' + varityId,
    method: 'delete'
  })
}
